-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add an all job for the test matrix #11880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
all: | ||
uses: ./.github/workflows/all.yml | ||
if: always() | ||
needs: | ||
- macos | ||
- ubuntu | ||
- windows | ||
with: | ||
needs: ${{ toJSON(needs) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I noticed you're reinventing the wheel here :)
I've got this https://github.com/re-actors/alls-green implemented a while back. Inspired by PyCA and some other research.
all: | |
uses: ./.github/workflows/all.yml | |
if: always() | |
needs: | |
- macos | |
- ubuntu | |
- windows | |
with: | |
needs: ${{ toJSON(needs) }} | |
all: # This job does nothing and is only used for the branch protection | |
if: always() | |
needs: | |
- macos | |
- ubuntu | |
- windows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about reinventing... pytest-dev/pytest-twisted@4c75379 :]
but yes, thanks for the heads up on your action. I noticed it over in the towncrier comments as well. I'm glad to see this practice has some traction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we've faced this problem in aiohttp where automerge would merge broken PRs and I've accidentally seen the solution in PyCA/cryptography, then gone ahead and generalized it a bit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for "one check for branch protection" idea, it's ancient. Coming from CIs like Zuul and Bors.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
closing in favor of #20026 for logistical reasons. thanks 🇺🇦 |
No description provided.